package com.example.carmanager.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 
 * @TableName car
 */
@TableName(value ="car")
@Data
public class Car implements Serializable {
    /**
     * 
     */
    @ApiModelProperty("编号")
    @TableId(type = IdType.AUTO)
    private Integer carId;

    /**
     * 
     */
     @ApiModelProperty("车名")
    private String carName;

    /**
     * 
     */
    @ApiModelProperty("价格")
    private BigDecimal carPrice;

    /**
     * 
     */
    @ApiModelProperty("公里数")
    private String carMileage;

    /**
     * 
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty("时间")
    private Date carBuyTime;

    /**
     * 
     */
    @ApiModelProperty("状态")
    private Integer carType;

    /**
     * 
     */
    @ApiModelProperty("1")
    private Integer carStatus;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}